package cn.wlj.mq.work;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName WorkMqConfig
 * @Description TODO
 * @Author WLJ
 * @Date 2024/1/18 20:54
 * @Version 1.0
 */
@Configuration
public class WorkMqConfig {

    public static final String QUEUE_NAME = "boot_work_queue";

    @Bean
    public Queue getWorkQueue() {
        return new Queue(QUEUE_NAME);
    }
}
